import requests
import json


def send_custom_request_with_requests(url, method, headers, body):
    response = requests.request(method, url, headers=headers, data=body, verify=True)
    print(f"响应状态码: {response.status_code}")
    print(response.text)


# 示例使用
url = "https://www.drs.com/JJWWT/anything"
method = "POST"
headers = {
    "Content-Type": "application/json",
    "Accept": "text/plain"
}
body = json.dumps({"key": "value"})

send_custom_request_with_requests(url, method, headers, body)
